Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVPlayerLayer videoGravity support on iOS #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bedemiralp
Copy link

  • adding resizeAspectFill prop to preserve the video's aspect ratio and fill the layer's bounds on iOS
  • updating the prop list in README.md
  • adding resizeAspectFill prop to index.d.ts file
  • changing iOS Deployment Target setting to 9.0 (was 11.2)

…nd fill the layer's bounds on iOS

* updating the prop list in README.md

* adding resizeAspectFill prop to index.d.ts file

* changing iOS Deployment Target setting to 9.0 (was 11.2)
Copy link
Contributor

@manse manse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing.
For Android, I think that fixing this part can provide the same function.
Would you please fix it ?
https://github.com/manse/react-native-brightcove-player/blob/master/android/src/main/java/jp/manse/BrightcovePlayerView.java#L233-L242

index.d.ts Outdated
@@ -14,6 +14,7 @@ export type Props = {
onEnd?: () => void;
onProgress?: ({ currentTime: number }) => void;
style?: ViewStyle;
resizeAspectFill: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prop is optional. Please add ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing this out. I fixed it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.
Is it possible to implement Android?

Thank you for contributing.
For Android, I think that fixing this part can provide the same function.
Would you please fix it ?
https://github.com/manse/react-native-brightcove-player/blob/master/android/src/main/java/jp/manse/BrightcovePlayerView.java#L233-L242

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing. It may be possible. I will give it a try.

rafbc referenced this pull request in pankaj-pp/react-native-brightcove-player Jul 1, 2019
Implemented the setFullscreen on rotation
kadowaki001 referenced this pull request in OneCareerJP/react-native-brightcove-player Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants